package controller

import (
	"context"
	"xr-game-server/core/httpserver"
	"xr-game-server/dto/chatdto"
	"xr-game-server/module/chat"
)

type Chat struct {
}

func initChat() {
	httpserver.RegAPI("/chat", &Chat{})
}
func (this *Chat) P2PChat(ctx context.Context, req *chatdto.P2PChatReq) (bool, error) {
	return chat.P2PChat(ctx, req)
}

func (this *Chat) WorldChat(ctx context.Context, req *chatdto.WorldChatReq) (bool, error) {
	return chat.WorldChat(ctx, req)
}
func (this *Chat) GetWorldChat(ctx context.Context, req *chatdto.GetWorldChatReq) ([]*chatdto.PushChatDto, error) {
	return chat.GetWorldChat(ctx, req)
}
func (this *Chat) PushP2P(ctx context.Context, req *chatdto.PushP2P) (*chatdto.PushP2PRes, error) {
	return nil, nil
}
func (this *Chat) PushWorld(ctx context.Context, req *chatdto.PushWorldChat) (*chatdto.PushWorldChatRes, error) {
	return nil, nil
}
func (this *Chat) UnionChat(ctx context.Context, req *chatdto.UnionChatReq) (bool, error) {
	return chat.UnionChat(ctx, req)
}
func (this *Chat) GetUnionChat(ctx context.Context, req *chatdto.GetUnionChatReq) ([]*chatdto.PushChatDto, error) {
	return chat.GetUnionChat(ctx, req)
}
func (this *Chat) PushUnion(ctx context.Context, req *chatdto.PushUnionChat) (*chatdto.PushUnionChatRes, error) {
	return nil, nil
}
